package org.naigu.peach.dal.dao;

import org.naigu.peach.dal.dataobject.CommentDO;
import guda.grape.autogen.common.page.BaseQuery;
import java.util.List;

public interface CommentDAO {


    Long insert(CommentDO comment);


    CommentDO getCommentById(Long commentId);


    boolean delCommentById(Long commentId);

    List<CommentDO> getCommentByIds(List idsList);

    /**
     * 清空测试用例加入的autoincrement
     */
    void cleanAutoIncrement(Long commentId);

    List<CommentDO> selectForPage(BaseQuery baseQuery);

    int countForPage(BaseQuery baseQuery);

    void updateByIdSelective(CommentDO comment);

}
